package com.jackson.springdubbo.controller;

/*
 * Author: JacksonCoder
 * FileName: HelloController
 * Version: 1.0.0
 * Date: 2025/4/29
 */

import com.jackson.springdubbo.service.HelloService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @DubboReference
    private HelloService helloService;

    @GetMapping("/hello")
    public String hello(@RequestParam String name){
        return helloService.sayHello(name);
    }
}
